package com.project.personalfundmanager.client.common;

import java.util.List;

import com.extjs.gxt.ui.client.Registry;
import com.project.personalfundmanager.client.facebook.FBCore;
import com.project.personalfundmanager.client.taxitems.ParentItem;
import com.project.personalfundmanager.shared.models.TaxInfoGroupModel;

@SuppressWarnings("unchecked")
public class GlobalRegister
{
	final static String TAX_GROUP_MODEL = "taxGroupModel";
	final static String TAB_PANEL = "taxPanel";
	final static String FB_CORE = "FbCore";
	
	public static TaxInfoGroupModel getTaxGroupModel()
	{
		return Registry.get( TAX_GROUP_MODEL );
	}
	
	public static void setTaxGroupModel(TaxInfoGroupModel model)
	{
		Registry.register( TAX_GROUP_MODEL, model );
	}
	
	public static List<ParentItem> getPanelItems()
	{
		return Registry.get( TAB_PANEL );
	}
	
	public static void setPanelItems(List<ParentItem> panel)
	{
		Registry.register( TAB_PANEL, panel );
	}
	
	public static FBCore getFbCore()
	{
		return Registry.get( FB_CORE );
	}
	
	public static void setFbCore(FBCore core)
	{
		Registry.register(FB_CORE, core);
	}
}
